package cn.yunyichina.provider.clinic.main;

import java.io.File;
import java.nio.file.Files;
import java.util.Date;

import cn.yunyichina.provider.clinic.service.impl.OrderServiceImpl;
import cn.yunyichina.provider.clinic.service.impl.RecipeServiceImpl;
import cn.yunyichina.provider.framework.data.SpringContextHandler;
import cn.yunyichina.provider.framework.dubbo.service.impl.YytServiceImpl;
import cn.yunyichina.provider.iface.entity.clinic.ClinicOrder;
import cn.yunyichina.provider.iface.entity.clinic.RecipeVo;
import cn.yunyichina.provider.iface.entity.common.ResCommon;
import cn.yunyichina.provider.iface.service.IClinic;
import cn.yunyichina.utils.commons.DateUtils;

/**
 * 门诊服务子系统dubbo入口
 * 
 * @author zhangkw
 * @date 2016-07-29
 * 
 */
public class ClinicServiceImpl extends YytServiceImpl implements IClinic {

    @Override
    public String getErrorCode() {

        return "3000";
    }

	@Override
	public ResCommon<Void> updateClinicOrder(ClinicOrder co) {
		OrderServiceImpl orderServiceImpl=(OrderServiceImpl)SpringContextHandler.getBean("orderServiceImpl");
		return orderServiceImpl.updateClinicOrder(co);
	}

	@Override
	public ResCommon<String> createRecipePic(RecipeVo recipeVo) {
		RecipeServiceImpl recipeServiceImpl=(RecipeServiceImpl)SpringContextHandler.getBean("orderServiceImpl");
		return recipeServiceImpl.createSubRecipePic(recipeVo);
	}
}
